package com.punai.customer.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.TableField;
import com.punai.common.utils.converter.FeeTypeConverter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * 费用项类别对象 cus_expense_categories
 *
 * @author zxw
 * @date 2022-12-04
 */
@ExcelIgnoreUnannotated
@ColumnWidth(20)
@HeadRowHeight(20)
public class CusExpenseCategories  {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ExcelProperty("ID")
    private String id;

    /**
     * 公司id
     */
    @ExcelIgnore
    private Long companyId;

    /**
     * 类别名称
     */
    @ExcelProperty("名称")
    private String categoriesName;

    /**
     * 单位
     */
    @ExcelProperty("单位")
    private String unit;

    /**
     * 规格型号
     */
    @ExcelProperty("规格型号")
    private String spec;

    /**
     * 备注
     */
    @ExcelProperty("备注")
    private String categoriesRemark;

    /**
     * 类型(CL,JX)
     */
    @ExcelProperty(value = "类型",converter = FeeTypeConverter.class)
    private String type;

    /**
     * 排序
     */
    @ExcelProperty("排序")
    private Integer orderNum;

    @ExcelProperty("关联归口")
    private String gkItem;

    @TableField(exist = false)
    @ExcelIgnore
    private Map<String, List<String>> linkGkMap;

    @TableField(exist = false)
    @ExcelIgnore
    private Map<String, LinkedHashMap<String, String>> linkGkMapName;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public void setCategoriesName(String categoriesName) {
        this.categoriesName = categoriesName;
    }

    public String getCategoriesName() {
        return categoriesName;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setCategoriesRemark(String categoriesRemark) {
        this.categoriesRemark = categoriesRemark;
    }

    public String getCategoriesRemark() {
        return categoriesRemark;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getGkItem() {
        return gkItem;
    }

    public void setGkItem(String gkItem) {
        this.gkItem = gkItem;
    }

    public Map<String, List<String>> getLinkGkMap() {
        return linkGkMap;
    }

    public void setLinkGkMap(Map<String, List<String>> linkGkMap) {
        this.linkGkMap = linkGkMap;
    }

    public Map<String, LinkedHashMap<String, String>> getLinkGkMapName() {
        return linkGkMapName;
    }

    public void setLinkGkMapName(Map<String, LinkedHashMap<String, String>> linkGkMapName) {
        this.linkGkMapName = linkGkMapName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("categoriesName", getCategoriesName())
                .append("unit", getUnit())
                .append("categoriesRemark", getCategoriesRemark())
                .append("type", getType())
                .append("orderNum", getOrderNum())
                .toString();
    }
}
